package com.bestcem.xm.user.grpc.client;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * @author Linked <zhijian.lin@idiaoyan.com>
 * @version v1.0
 * @date 2022/8/8 17:47
 */

@Slf4j
@Service("deliverGrpcClientService")
public class DeliverGrpcService {

    //get返回值不用，写尼玛呢
    //@GrpcClient(GrpcClientNames.XM)
    //private DeliverServiceGrpc.DeliverServiceBlockingStub stub;
    //
    //public void getSmsbalanceByOrg(String orgId) {
    //    // 设置请求参数
    //    GetSmsbalanceByOrgRequest.Builder builder = GetSmsbalanceByOrgRequest.newBuilder()
    //            .setOrgId(orgId);
    //    try {
    //        stub.getSmsbalanceByOrg(builder.build());
    //    } catch (Exception e) {
    //        log.error("[USER]");
    //    }
    //}
}
